const mixin = {
  methods: {
    formatdata1(row) {
      var data = new Date(row.cTime);
      var year = data.getFullYear();
      var month = data.getMonth()+1;
      var day = data.getDay();
      var hours = data.getHours();
      var minutes = data.getMinutes();
      var seconds = data.getSeconds();
      return `${year}-${month<10?'0'+month:month}-${day<10?'0'+day:day}  ${hours<10?'0'+hours:hours}:${minutes<10?'0'+minutes:minutes}:${seconds<10?'0'+seconds:seconds}`
    },
    formatdata2(row) {
      var data = new Date(row.uTime);
      var year = data.getFullYear();
      var month = data.getMonth()+1;
      var day = data.getDay();
      var hours = data.getHours();
      var minutes = data.getMinutes();
      var seconds = data.getSeconds();
      return `${year}-${month<10?'0'+month:month}-${day<10?'0'+day:day}  ${hours<10?'0'+hours:hours}:${minutes<10?'0'+minutes:minutes}:${seconds<10?'0'+seconds:seconds}`
    },
    formatdata3(row) {
      var data = new Date(row.bTime);
      var year = data.getFullYear();
      var month = data.getMonth()+1;
      var day = data.getDay();
      var hours = data.getHours();
      var minutes = data.getMinutes();
      var seconds = data.getSeconds();
      return `${year}-${month<10?'0'+month:month}-${day<10?'0'+day:day}  ${hours<10?'0'+hours:hours}:${minutes<10?'0'+minutes:minutes}:${seconds<10?'0'+seconds:seconds}`
    },
    formatdata4(row) {
      var data = new Date(row.cTime);
      var year = data.getFullYear();
      var month = data.getMonth()+1;
      var day = data.getDay();
      return `${year}-${month<10?'0'+month:month}`
    },
    formatdata5(timer) {
      var data = new Date(timer);
      var year = data.getFullYear();
      var month = data.getMonth()+1;
      var day = data.getDay();
      return `${year}-${month<10?'0'+month:month}`
    },
  },
};
export default mixin
